<?php

/**
 * 请记得打注释, 小心被小田怼
 */
Route::get('entity/assets/assets', ['as'=> 'entity.assets.assets.index', 'uses' => 'Entity\Assets\AssetsController@index']);
Route::post('entity/assets/assets', ['as'=> 'entity.assets.assets.store', 'uses' => 'Entity\Assets\AssetsController@store']);
Route::get('entity/assets/assets/create', ['as'=> 'entity.assets.assets.create', 'uses' => 'Entity\Assets\AssetsController@create']);
Route::put('entity/assets/assets/{assets}', ['as'=> 'entity.assets.assets.update', 'uses' => 'Entity\Assets\AssetsController@update']);
Route::patch('entity/assets/assets/{assets}', ['as'=> 'entity.assets.assets.update', 'uses' => 'Entity\Assets\AssetsController@update']);
Route::delete('entity/assets/assets/{assets}', ['as'=> 'entity.assets.assets.destroy', 'uses' => 'Entity\Assets\AssetsController@destroy']);
Route::get('entity/assets/assets/{assets}', ['as'=> 'entity.assets.assets.show', 'uses' => 'Entity\Assets\AssetsController@show']);
Route::get('entity/assets/assets/{assets}/edit', ['as'=> 'entity.assets.assets.edit', 'uses' => 'Entity\Assets\AssetsController@edit']);

//工具视图
Route::get('entity/assets/assets/tool/view', ['as'=> 'entity.assets.assets.toolView', 'uses' => 'Entity\Assets\AssetsController@toolView']);
Route::get('entity/assets/assets/tool/importHistory', ['as'=> 'entity.assets.assets.importHistory', 'uses' => 'Entity\Assets\AssetsController@importHistory']);
Route::get('entity/assets/assets/tool/importHistory/{history}', ['as'=> 'entity.assets.assets.importHistoryShow', 'uses' => 'Entity\Assets\AssetsController@importHistoryShow']);
Route::get('entity/assets/assets/tool/database/{source}', ['as'=> 'entity.assets.assets.tool.database', 'uses' => 'Entity\Assets\AssetsController@database']);
Route::post('entity/assets/assets/tool/database/{source}', ['as'=> 'entity.assets.assets.tool.database', 'uses' => 'Entity\Assets\AssetsController@database']);

Route::get('entity/assets/assets/tool/model', ['as'=> 'entity.assets.assets.model', 'uses' => 'Entity\Assets\AssetsController@toolModel']);

//注入历史
Route::get('entity/assets/assets/tool/injectHistory', ['as'=> 'entity.assets.assets.injectHistory', 'uses' => 'Entity\Assets\AssetsController@injectHistory']);
Route::get('entity/assets/assets/tool/injectHistory/{history}', ['as'=> 'entity.assets.assets.injectHistoryShow', 'uses' => 'Entity\Assets\AssetsController@injectHistoryShow']);

// 批量导入
Route::post('entity/assets/assets/batch_import', ['as'=> 'entity.assets.assets.batch_import', 'uses' => 'Entity\Assets\AssetsController@batchImport']);

// XML批量导入
Route::post('entity/assets/assets/execXmlImport',
['as'=> 'entity.assets.assets.execXmlImport',
'uses' => 'Entity\Assets\AssetsController@execXmlImport'
]);


// 批量导入进度
Route::get('entity/assets/assets/bacth_import_progress',[
    'as'=> 'entity.assets.assets.bacth_import_progress',
    'uses' => 'Entity\Assets\AssetsController@bacthImportProgress'
]);

//黑龙江媒资查询接口
Route::get('entity/assets/assets/inject_data/view',[
    'as'=> 'entity.assets.assets.inject_data',
    'uses' => 'Entity\Assets\AssetsController@inject_data'
]);

// 媒资(电视剧总集和电影)注入
Route::get('/entity/assets/assets/injection/view', [
    'as'=> 'entity.assets.assets.injection',
    'uses' => 'Entity\Assets\AssetsController@injection'
]);
// 媒资(电视剧总集和电影)注入的进度
Route::get('/entity/assets/assets/injection_progress/view',[
    'as'=> 'entity.assets.assets.injection_progress',
    'uses' => 'Entity\Assets\AssetsController@injectionProgress'
]);
// 单个或多个媒资(电视剧总集和电影)注入
Route::get('/entity/assets/assets/inject_one_or_more/view',[
    'as'=> 'entity.assets.assets.inject_one_or_more',
    'uses' => 'Entity\Assets\AssetsController@injectOneOrMore'
]);
//单个媒资导入CMS
Route::get('/entity/assets/assets/importCms/view',[
    'as'=> 'entity.assets.assets.importCms',
    'uses' => 'Entity\Assets\AssetsController@importCms'
]);

